import Content from './views/Content.vue'
import Login from './views/Login.vue'
import ResetPassword from './views/ResetPassword.vue'
import NotFound from './views/404.vue'
import Home from './views/Home.vue'
import Main from './views/Main.vue'
import Log from './views/system/Log.vue'
import onlineUser from './views/system/onlineUser.vue'
import Role from './views/system/Role.vue'
import sysParam from './views/system/sysParam.vue'
import historyRecord from './views/system/HistoryRecord'
import Resource from './views/system/Resource.vue'
import Users from './views/system/Users.vue'
import setUser from './views/system/setUser.vue'


/* 系统管理 */
import sysRole from './views/system/Role.vue'
import sysUser from './views/system/Users.vue'
import sysLog from './views/system/Log.vue'

import sysUniversity from './views/system/University.vue'
import eduCompetent from './views/system/eduCompetent.vue'
import eduCompetentInfo from './views/system/eduCompetentInfo.vue'
import inspectItem from './views/system/InspectItem.vue'
import checkSetting from './views/system/CheckSetting'

/*任务管理*/
import taskList from './views/taskManage/taskList.vue';
import taskDetail from './views/taskManage/taskDetail.vue';
/*报告管理*/
import manageReportList from './views/reportManage/list.vue';
import manageReportView from './views/reportManage/view.vue';
import manageReportDetail from './views/reportManage/detail.vue';

/* 检查作业 */
import recordsList from './views/records/list.vue'
import recordsDetail from './views/records/detail.vue'
import recordsView from './views/records/view.vue'

/* 整改进度 */
//组长
import ExpertCorrectedPorgress from './views/expertCorrectedProgress'
import ExpertCorrectedDteail from './views/expertCorrectedProgress/detail.vue'
import ExpertCorrectedReview from './views/expertCorrectedProgress/review.vue'
//教育部
import EduCorrectedPorgress from './views/eduCorrectedProgress'
import EduCorrectedDteail from './views/eduCorrectedProgress/detail.vue'
import EduCorrectedReview from './views/eduCorrectedProgress/review.vue'
//高校
import UnivCorrectedPorgress from './views/univCorrectedProgress'
import UnivCorrectedDteail from './views/univCorrectedProgress/detail.vue'
import UnivCorrectedInfoDteail from './views/univCorrectedProgress/infoDetail.vue'
import UnivCorrectedEdit from './views/univCorrectedProgress/edit.vue'

/* 检查报告 */
import reportList from './views/report/list.vue'
import reportDetail from './views/report/detail.vue'
import reportEdit from './views/report/edit.vue'
import reportView from './views/report/view.vue'
import reportRecords from './views/report/records.vue'

/* 统计分析*/
import inspectItems from './views/statistics/inspectItems.vue'
import statisticalDivision from './views/statistics/division.vue'
import statisticalCorrected from './views/statistics/corrected.vue'
import statisticalUnivInfo from './views/statistics/univInfo.vue'
import statisticalSafeInfo from './views/statistics/safeInfo.vue'
import statisticalSafeDetail from './views/statistics/safeInfoDetail.vue'
import statisticalCheckCoures from './views/statistics/checkCourse.vue'


/* 自查报告 */
import nuivInspectReport from './views/inspectReport/univReport.vue'
import eduInspectReport from './views/inspectReport/eduReport.vue'

/* 新闻 */
import news from './views/news/News.vue'


/* 通知书 */
import Notice from './views/notice/Notice.vue'

/* 现场检查通知 */
import schoolNotice from './views/notice/schoolNotice.vue'

/* 注册管理 */
import unitSignUp from './views/unitSignUp'


/* 校方资料 */
import School from './views/school/info.vue'


import Index from './views/index.vue'

let routes = [
    {
        path: '/login',
        component: Login,
        name: '',
        hidden: true
    },
    {
        path: '/reset_pwd',
        component: ResetPassword,
        name: '找回密码',
        hidden: true
    },
    
    // 检查报告
    {
        path: '/',
        perm: '',
        code: '0',
        component: Home,
        leaf:true,
        iconCls: 'el-icon-s-home',
        children: [
            {path: '/index', component: Index, name: '首页', code: "100000",meta:'/index'},
        ]
    },
    {
        path: '/404',
        component: NotFound,
        name: '',
        hidden: true
    },

    // 任务管理
    {
        path:'/',
        perm:'',
        code:'10060',
        component: Home,
        name:'任务管理',
        iconCls:'iconfont icon-anquanjianchaoff',
        children:[
            {path:'/tasks/list',component:taskList, name:'任务列表',code:'30010',meta:'/tasks/list'},
            {path:'/tasks/detail/:id',component:taskDetail, name:'任务详情',code:'30020',meta:'/tasks/detail', hidden: true},
        ]
    },

    // 报告管理
    {
        path:'/',
        perm:'',
        code:'10090',
        component: Home,
        name:'报告管理',
        iconCls:'iconfont icon-huanzhebaogao',
        meta:'/',
        children:[
            {path:'/manage/reports/list',component:manageReportList, name:'报告列表',code:'30010',meta:'/manage/reports/list'},
            {path:'/manage/reports/view/:id',component:manageReportView, name:'报告详情',code:'30020',hidden: true,meta:'/manage/reports/view'},
            {path:'/manage/reports/detail/:id',component:manageReportDetail, name:'编辑报告',code:'30020',hidden: true,meta:'/manage/reports/detail'},
        ]
    },

    // 整改通知书
    {
        path:'/',
        perm:'',
        code:'50000',
        component: Home,
        name:'整改通知书',
        iconCls:'iconfont icon-qiyezhenggaidaoqiyujing',
        children:[
            {path:'/notice',component:Notice, name:'整改通知书列表',code:'50010',meta:'/notice'},
        ]
    },

    // 检查作业
    {
        path: '/records',
        perm: '',
        code: '20000',
        component: Home,
        name: '检查作业',
        iconCls: 'iconfont icon-bianji',
        children: [
            {path: '/records/list', component: recordsList, name: '检查作业列表', code: "20100",meta:'/records/list'},
            {path: '/records/detail/:id', component: recordsDetail, name: '作业详情', code: "20200", hidden: true, meta:'/records/list'},
            {path: '/records/view/:id', component: recordsView, name: '作业预览', code: "20300", hidden: true, meta:'/records/list'},
        ]
    },

    // 检查报告
    {
        path: '/report',
        perm: '',
        code: '30000',
        component: Home,
        name: '检查报告',
        iconCls: 'iconfont icon-baogaochaxun',
        children: [
            {path: '/report/list', component: reportList, name: '检查报告列表', code: "30100",meta:'/report/list'},
            {path: '/report/detail/:id', component: reportDetail, name: '检查报告详情', code: "30200", hidden: true, meta:'/report/list'},
            {path: '/report/edit/:id', component: reportEdit, name: '编辑检查报告', code: "30300", hidden: true, meta:'/report/list'},
            {path: '/report/view/:id', component: reportView, name: '报告预览', code: "30400", hidden: true, meta:'/report/list'},
            {path: '/report/records/:id', component: reportRecords, name: '查看作业', code: "30500", hidden: true, meta:'/report/list'},
        ]
    },

    // 现场检查通知
    {
        path:'/',
        perm:'',
        code:'70000',
        component: Home,
        name:'现场检查通知',
        iconCls:'iconfont icon-qiyezhenggaidaoqiyujing',
        children:[
            {path:'/task/notice',component:schoolNotice, name:'通知列表',code:'30010',meta:'/task/notice'},
        ]
    },
    // 注册申请管理
    {
        path:'/sign_up_audit',
        perm:'',
        code:'10160',
        component: Home,
        name:'注册管理',
        iconCls:'iconfont icon-qiyezhenggaidaoqiyujing',
        children:[
            {path:'/sign_up_audit/list',component:unitSignUp, name:'注册列表',code:'30010',meta:'/sign_up_audit/list'},
        ]
    },

    // 整改进度 - 专家
    {
        path:'/expert_corrected',
        perm:'',
        code:'10080',
        component: Home,
        name:'整改进度 ',
        iconCls:'iconfont icon-zhenggaicuoshi',
        children:[
            {
                path:'/expert_corrected/list',
                component:ExpertCorrectedPorgress,
                name:'整改进度列表',
                code:'30010',
                meta:'/expert_corrected/list'
            },
            {
                path:'/expert_corrected/detail',
                component:ExpertCorrectedDteail,
                name:'整改进度详情',
                hidden: true,
                code:'30020',
                meta:'/expert_corrected/list'
            },
            {
                path:'/expert_corrected/review/:id',
                component:ExpertCorrectedReview,
                name:'审核报告',
                hidden: true,
                code:'30030',
                meta:'/expert_corrected/list'
            },
        ]
    },

    // 整改进度 - 教育部
    {
        path:'/edu_corrected',
        perm:'',
        code:'10110',
        component: Home,
        name:'整改进度',
        iconCls:'iconfont icon-zhenggaicuoshi',
        children:[
            {
                path:'/edu_corrected/list',
                component:EduCorrectedPorgress,
                name:' 整改进度列表',
                code:'30010',
                meta:'/edu_corrected/list'
            },
            {
                path:'/edu_corrected/detail',
                component:EduCorrectedDteail,
                name:' 整改进度详情',
                hidden: true,
                code:'30020',
                meta:'/edu_corrected/list'
            },
            {
                path:'/edu_corrected/review/:id',
                component:EduCorrectedReview,
                name:' 审核报告',
                hidden: true,
                code:'30030',
                meta:'/edu_corrected/list'
            },
        ]
    },

    // 整改进度 - 高校
    {
        path:'/univ_corrected',
        perm:'',
        code:'10100',
        component: Home,
        name:' 整改进度',
        iconCls:'iconfont icon-zhenggaicuoshi',
        children:[
            {
                path:'/univ_corrected/list',
                component:UnivCorrectedPorgress,
                name:'整改进度详情 ',
                code:'30010',
                meta:'/univ_corrected/list'
            },
            {
                path:'/univ_corrected/edit/:id',
                component:UnivCorrectedEdit,
                name:'编辑整改报告',
                hidden: true,
                code:'30020',
                meta:'/univ_corrected/list'
            },
            {
                path:'/univ_corrected/detail/:id',
                component:UnivCorrectedDteail,
                name:'整改报告详情',
                hidden: true,
                code:'30030',
                meta:'/univ_corrected/list'
            },
            {
                path:'/univ_corrected/info/:id',
                component:UnivCorrectedInfoDteail,
                name:'查看报告',
                hidden: true,
                code:'30040',
                meta:'/univ_corrected/list'
            }
        ]
    },

    // 统计分析
    {
        path:'/',
        perm:'',
        code:'10070',
        component: Home,
        name:'统计分析',
        iconCls:'iconfont icon-tongji',
        children:[
            {path:'/statistics/inspect_item',component:inspectItems, name:'检查项分析',code:'30010',meta:'/statistics/inspect_item'},
            {path:'/statistics/division',component:statisticalDivision, name:'问题分布',code:'30020',meta:'/statistics/division'},
            {path:'/statistics/corrected',component:statisticalCorrected, name:'整改统计',code:'30030',meta:'/statistics/corrected'},
            {path:'/statistics/safe_info',component:statisticalSafeInfo, name:'安全管理情况统计',code:'30060',meta:'/statistics/safe_info'},
            {path:'/statistics/safe_info/detail',component:statisticalSafeDetail, name:'专职管理人员详情',code:'30070',meta:'/statistics/safe_info/detail', hidden: true},
            {path:'/statistics/univ_info',component:statisticalUnivInfo, name:'学校基础数据统计',code:'30040',meta:'/statistics/univ_info'},
            {path:'/statistics/check_course',component:statisticalCheckCoures, name:'检查过程统计',code:'30050',meta:'/statistics/check_course'},
        ]
    },

    // 自查报告
    {
        path:'/',
        perm:'',
        code:'10150',
        component: Home,
        name:'自查报告管理',
        iconCls:'iconfont icon-tongji',
        children:[
            {path:'/inspect/edu_report',component:eduInspectReport, name:'管理自查报告',code:'30020',meta:'/inspect/edu_report'},
            {path:'/inspect/univ_report',component:nuivInspectReport, name:'自查报告列表',code:'30010',meta:'/inspect/univ_report'}
        ]
    },

    // 资讯与通知
    {
        path:'/',
        perm:'',
        code:'40000',
        component: Home,
        name:'资讯与通知',
        iconCls:'iconfont icon-tongzhi1',
        children:[
            {path:'/news',component:news, name:'资讯列表',code:'40010',meta:'/news'},
        ]
    },

    // 校方资料
    {
        path:'/',
        perm:'',
        code:'60000',
        component: Home,
        name:'校方资料',
        iconCls:'iconfont icon-xuexiao1',
        children:[
            {path:'/university/info',component:School, name:'资料详情',code:'60010',meta:'/university/info'},
        ]
    },
    // 教育主管部门
    {
        path:'/',
        perm:'',
        code:'10170',
        component: Home,
        name:'主管部门资料',
        iconCls:'iconfont icon-xuexiao1',
        children:[
            {path:'/edu/competent/info',component:eduCompetentInfo, name:'资料详情',code:'30010',meta:'/edu/competent/info'},
        ]
    },

    // 系统管理
    {
        path: '/',
        perm: '',
        code: '100000',
        component: Home,
        name: '系统管理',
        iconCls: 'iconfont icon-xitong',
        children: [
            {path: '/system/role', component: sysRole, name: '角色管理', code: "102500",meta:'/system/role'},
            {path: '/system/user', component: sysUser, name: '用户管理', code: "103500",meta:'/system/user'},
            // { path: '/system/user/add', component: sysUserAdd, name: '增加用户',code:"103510", hidden: true,meta:"/system/user"},
            // { path: '/system/user/edit/:id', component: sysUserEdit, name: '编辑用户',code:"103520", hidden: true,meta:"/system/user"},
            // { path: '/system/user/lab/:id', component: sysUserLab, name: '配置实验室',code:"103530", hidden: true,meta:"/system/user"},
            // { path: '/system/user/reset/:id', component: sysUserReset, name: '重置密码',code:"103540", hidden: true,meta:"/system/user"},
            {path: '/system/resource', component: Resource, name: '资源管理', code: "103000",meta:'/system/resource'},


            {path: '/system/edu_competent', component: eduCompetent, name: '教育主管部门管理', code: "30080",meta:'/system/edu_competent',},
            {path: '/system/edu_competent_info/:id', component: eduCompetentInfo, name: '教育主管部门详情', hidden: true, code: "50010",meta:'/system/edu_competent_info'},
            {path: '/system/university', component: sysUniversity, name: '高校管理', code: "30080",meta:'/system/university'},
            {path: '/system/university/info/:id', component: School, name: '高校详情', hidden: true,code: "30080",meta:'/system/university'},
            {path: '/system/inspectItem', component: inspectItem, name: '检查项管理', code: "30090",meta:'/system/inspectItem'},
            // {path: '/system/checkSetting', component: checkSetting, name: '检查结果设置', code: "30100",meta:'/system/checkSetting'},


            {path: '/system/log', component: sysLog, name: '行为日志', code: "100500",meta:'/system/log'},
            {path: '/setuser', component: setUser, name: '个人设置', hidden: true,meta:'/'},
			
			//检查报告
            {path: '/report/list', component: reportList, name: '检查报告列表', code: "30100",meta:'/report/list'},
            {path: '/report/detail/:id', component: reportDetail, name: '检查报告详情', code: "30200", hidden: true, meta:'/report/list'},
            {path: '/report/edit/:id', component: reportEdit, name: '编辑检查报告', code: "30300", hidden: true, meta:'/report/list'},
            {path: '/report/view/:id', component: reportView, name: '报告预览', code: "30400", hidden: true, meta:'/report/list'},
            {path: '/report/records/:id', component: reportRecords, name: '查看作业', code: "30500", hidden: true, meta:'/report/list'},
        ]
    },
    {
        path: '*',
        hidden: true,
        redirect: {path: '/404'}
    }
];


export default routes;
